size = 5
row = 1
while row <= size:
    col = 1
    while col <= row:
        print("*", end="")
        col += 1
    while col <= size:
        print(" ", end="")
        col += 1
    print()
    row += 1

print("=======================================")
row = 1
while row <= size:
    col = 1
    while col <= size - row:
        print(" ", end="")
        col += 1
    while col <= size:
        print("*", end="")
        col += 1
    print()
    row += 1

print("======================================")
row = 1
while row <= size:
    col = 1
    while col <= size - row + 1:
        print("*", end="")
        col += 1
    while col <= size:
        print(" ", end="")
        col += 1
    print()
    row += 1

print("======================================")
row = 1
while row <= size:
    col = 1
    while col <= row - 1:
        print(" ", end="")
        col += 1
    while col <= size:
        print("*", end="")
        col += 1
    print()
    row += 1